#pragma once

#include "ofMain.h"

#include "ofxOsc.h"
#include "ofxXmlSettings.h"


class Client {
public:
	bool running;
	bool netConnected;
	bool arduinoConnected;
	float length;
	float time;
	string soundfile;
	int numCues;
	int cue;
	ofxOscReceiver	receiver;
	ofxOscSender sender;
	int timer;
	float acc[3];
	float accSum;
	string v;
	int batPercent;
	int batTime;
	bool accMaster;
	string ip;
	bool senderConnected;
	float duskSum[4];
	int lastMsgTime;
};


//--------------------------------------------------------
class testApp : public ofSimpleApp{
	
public:
	
	void setup();
	void update();
	void draw();
	
	void keyPressed  (int key);
	void mouseMoved(int x, int y );
	void mouseDragged(int x, int y, int button);
	void mousePressed(int x, int y, int button);
	void mouseReleased();
	
	ofTrueTypeFont		font;
	ofTrueTypeFont		bigfont;
	vector<Client> clients;
	
	ofxXmlSettings settings;
	
	
private:
	
	int				current_msg_string;
};

